function setLogin(username, password) {
	if (typeof (Storage) !== "undefined") {
		localStorage.username=username;
		localStorage.password=password;
	} else {
		alert('Get a decent browser!');
		window.location = "https://www.google.com/intl/en/chrome/browser/";
	}
}
function setId(id) {
	if (typeof (Storage) !== "undefined") {
		localStorage.id=id;
	} else {
		alert('Get a decent browser!');
		window.location = "https://www.google.com/intl/en/chrome/browser/";
	}
}
function getUsername() {
	if (typeof (Storage) !== "undefined") {
		return localStorage.username;
	} else {
		alert('Get a decent browser!');
		window.location = "https://www.google.com/intl/en/chrome/browser/";
	}
}
function getId() {
	if (typeof (Storage) !== "undefined") {
		return localStorage.id;
	} else {
		alert('Get a decent browser!');
		window.location = "https://www.google.com/intl/en/chrome/browser/";
	}
}

function getPassword() {
	if (typeof (Storage) !== "undefined") {
		return localStorage.password;
	} else {
		alert('Get a decent browser!');
		window.location = "https://www.google.com/intl/en/chrome/browser/";
	}
}

function clearLogin(){
	if(typeof (Storage) !== "undefined"){
		localStorage.username = null;
		localStorage.password = null;
	}
}

function checkLogin(){
	if(typeof (Storage) !== "undefined"){
		if(localStorage.username != null && localStorage.password != null && localStorage.username != "null" && localStorage.password != "null"){
			return true;
		} else {
			return false;
		}
	}
}